<?php

declare(strict_types=1);

namespace app\wechat\validate\admin;

use sheep\validate\Backend;

class Menu extends Backend
{
    protected $rule = [
        'name' => 'require',
        'rules' => 'require|array',
    ];

    protected $message  =   [
        'name.require'     => '菜单名称必须填写',
        'rules.require'     => '菜单规则不能为空',
        'rules.array'     => '菜单格式不正确',
    ];


    protected $scene = [
        'add' => ['name', 'rules']
    ];
}
